<!doctype html>
<html class="no-js" lang="zxx">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>分类- 美妆网上商城- 你值得拥有</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="apple-touch-icon" href="static/img/apple-touch-icon.png">
    <link rel="shortcut icon" type="image/x-icon" href="static/img/icon/favicon.ico">
    <!-- Place favicon.ico in the root directory -->

    <!-- all css here -->
    <link rel="stylesheet" href="static/css/bootstrap.min.css">
    <link rel="stylesheet" href="static/css/font-awesome.min.css">
    <link rel="stylesheet" href="static/css/elegant-font.css">
    <link rel="stylesheet" href="static/css/material-design-iconic-font.min.css">
    <link rel="stylesheet" href="static/css/meanmenu.min.css">
    <link rel="stylesheet" href="static/css/animate.css">
    <link rel="stylesheet" href="static/css/magnific-popup.css">
    <link rel="stylesheet" href="static/css/animate-heading.css">
    <link rel="stylesheet" href="static/css/owl.carousel.min.css">
    <link rel="stylesheet" href="static/css/owl.theme.default.min.css">
    <link rel="stylesheet" href="static/css/shortcode/shortcodes.css">
    <link rel="stylesheet" href="static/css/style.css">
    <link rel="stylesheet" href="static/css/responsive.css">
    <script src="static/js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>

<div style="height: 50px;float:left;margin-left: 30px;margin-top: 20px">

    <%
    if(user != null){
    %>
    <a href="${CAERTURL}/cart" style="color: green"><b>·</b> 我的购物袋</a>
    <%
    }else{
    %>

    <%
    }
    %>
</div>
<div style="height: 50px;float:right;margin-right: 30px;margin-top: 20px">

    <%
    if(user.username!=null){
    %>
    <a href="${SSOURL}/user/info">${user.name == ''? user.username:user.name}</a> <b>欢迎光临！</b>
    <%
    }else{
    %>
    <a href="#">登录和注册</a>
    <%
    }
    %>
</div>

<header>
    <!-- Header Menu Area -->
    <div class="menu-area mt-60">
        <div class="container">
            <div class="row">
                <div class="col-md-3 col-sm-12">
                    <div class="logo-area text-center text-uppercase">
                        <a href="index.html"><img src="static/img/icon/logo.png" alt=""/></a>
                    </div>
                </div>
                <div class="col-md-9 col-sm-12">
                    <div class="main-menu lemon-bg">
                        <nav>
                            <ul id="nav">
                                <li><a href="${HOMEURL}">主页</a></li>
                                <li><a href="#">分类</a>
                                    <ul>
                                        <li><a href="${HOMEURL}/sort?name=本月推荐"><i class="arrow_carrot-right"></i> 本月推荐</a>
                                        </li>
                                        <li><a href="${HOMEURL}/sort?name=本月特价"><i class="arrow_carrot-right"></i> 本月特价</a>
                                        </li>
                                        <li><a href="${HOMEURL}/sort?name=新品上市"><i class="arrow_carrot-right"></i> 新品上市</a>
                                        </li>
                                        <li><a href="${HOMEURL}/sort?name=最佳销售"><i class="arrow_carrot-right"></i> 最佳销售</a>
                                        </li>
                                    </ul>
                                </li>
                                <li><a href="${SSOURL}/user/info">个人中心</a></li>
                            </ul>
                        </nav>

                        <!-- Product Cart -->
                        <div class="menu-right-area">
                            <a href="#" class="mini-cart-icon">
                                <i class="icon_cart_alt"></i>
                                <span>${homeCartItems.~size}</span>
                            </a>
                            <div class="top-cart-content">
                                <%for(homeCartItem in homeCartItems){%>
                                <!-- Cart Single -->
                                <div class="media header-middle-checkout">
                                    <div class="media-left check-img">
                                        <a href="#">
                                            <img alt="" src="${homeCartItem.image}"
                                                 style="max-width:100px;max-height:100px;">
                                        </a>
                                    </div>
                                    <div class="media-body checkout-content">
                                        <h4 class="media-heading">
                                            <a href="#">${homeCartItem.title}</a>
                                            <span title="Remove This Item" class="btn-remove checkout-remove">
														<i class="fa fa-trash"></i>
													</span>
                                        </h4>
                                        <p>${homeCartItem.num} x ￥${homeCartItem.price}</p>
                                    </div>
                                </div>
                                <!-- Cart Single -->
                                <%}%>
                                <div class="actions">
                                    <button type="button" title="Checkout-botton" class="Checkout-botton"
                                            onclick="showCart()">
                                        <span>浏览购物袋</span>
                                    </button>
                                </div>
                            </div>
                            <script>
                                function showCart() {
                                    window.location.href = "${CAERTURL}/cart";
                                }
                            </script>

                        </div>
                        <!-- Product Cart -->


                    </div>
                    <input id="search" value="" style="color:#fff" placeholder="点此搜索"/>

                </div>
            </div>
        </div>
    </div>
    <!-- Header Menu Area -->
    <!-- Header Slider Area -->

    <div class="slider-area">

        <div class="bend niceties preview">
            <div id="ensign-nivoslider" class="slides">
                <%for(content in homeContent){%>
                <img src="${content.pic!''}" alt="" title="#slider-direction-1"/>
                <%}%>
            </div>

            <!-- direction 1 -->
            <div id="slider-direction-1" class="slider-direction">
                <div class="slider-content text-center s-tb slider-1">
                    <div class="title-container s-tb-c title-compress">

                        <h2 class="title2">
                            <span class="icon-left" data-icon="&#x7b;"></span>
                            独特 & 魅力
                            <span class="icon-right" data-icon="&#x7b;"></span>
                        </h2>
                        <h1 class="title1">美妆 2019 collections</h1>
                        <div class="slider-btn text-uppercase">
                            <!--									<a href="#">View All <span class="icon-left" data-icon="&#x24;"></span></a>-->
                        </div>
                        <!-- Icon Left -->
                        <div class="social-icon-left">
                            <ul>
                                <li><a href="#" class="social_facebook"></a></li>
                                <li><a href="#" class="social_googleplus"></a></li>
                                <li><a href="#" class="social_twitter"></a></li>
                            </ul>
                        </div>
                        <!-- Icon Left -->
                        <!-- Icon Right -->
                        <div class="social-icon-right">
                            <ul>
                                <li><a href="#" class="icon_refresh"></a></li>
                                <li><a href="#" class="icon_heart_alt"></a></li>
                                <li><a href="#" class=" icon_search"></a></li>
                            </ul>
                        </div>
                        <!-- Icon Right -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Header Slider Area -->
    <!-- MOBILE-MENU-AREA START -->
    <div class="mobile-menu-area">
        <div class="container">
            <div class="row">
                <div class="col-md-12 col-sm-12">
                    <div class="mobile-area">
                        <div class="mobile-menu">
                            <nav id="mobile-nav">
                                <ul>
                                    <li><a href="index.html">主页 </a>
                                        <ul>
                                            <li><a href="index.html">Home Two</a></li>
                                            <li><a href="index-3.html">Home Three</a></li>
                                            <li><a href="index-4.html">Home Four</a></li>
                                        </ul>
                                    </li>
                                    <li><a href="about.html"> 关于我们 </a></li>
                                    <li><a href="shop.html">商店</a>
                                        <ul>
                                            <li><a href="shop.html">Shop</a></li>
                                            <li><a href="shop-grid.html"> Shop Grid</a></li>
                                            <li><a href="shop-list.html"> Shop List</a></li>
                                            <li><a href="single-product.html">Single Product</a></li>
                                        </ul>
                                    </li>
                                    <li><a href="blog.html">博客</a></li>
                                    <li><a href="blog-details.html">Blog Details</a></li>
                                    <li><a href="#">PAGES</a>
                                        <ul>
                                            <li><a href="checkout.html">Checkout</a></li>
                                            <li><a href="cart.html">Cart</a></li>
                                            <li><a href="account.html">Account</a></li>
                                            <li><a href="wishlist.html">Wishlist</a></li>
                                            <li><a href="blog-details.html">Blog</a></li>
                                            <li><a href="login.html">Login</a></li>
                                        </ul>
                                    </li>
                                    <li><a href="portfolio.html">Portfolio</a></li>
                                    <li><a href="404.html">404 Error</a></li>
                                    <li><a href="contact.html">Contact</a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- MOBILE-MENU-AREA END  -->
</header>
<!-- Header Area End -->

<!-- Month Top Sale Area Start -->
<section class="top-sale-month-area ptb-100">
    <!-- SECTION TITEL -->
    <div class="section-titel style-two text-center mb-115 text-uppercase">
        <h3>
            <%
            if(name == '本月推荐'){
            %>
            本月推荐
            <%
            }
            %>

            <%
            if(name == '本月特价'){
            %>
            本月特价
            <%
            }
            %>

            <%
            if(name == '新品上市'){
            %>
            新品上市
            <%
            }
            %>

            <%
            if(name == '最佳销售'){
            %>
            最佳销售
            <%
            }
            %>
        </h3>
    </div>
    <!-- SECTION TITEL -->
    <div class="container">
        <div class="row">
            <div class="product-gallery owl-carousel owl-theme">
                <!-- Single Product Start -->

                <%for(item in items){%>
                <div class="col-md-12 item">
                    <div class="single-product">
                        <div class="single-img">
                            <a href="#"><img src="${item.image!''}" alt=""/></a>
                            <div class="hover-content text-center">
                                <ul>
                                    <li><a href="#" class="icon_refresh"></a></li>
                                    <li><a href="${CAERTURL}?id=${item.itemId}" class="icon_cart_alt "></a></li>
                                    <li><a href="#" class="icon_heart_alt"></a></li>
                                    <li>
                                        <a title="Quick View" href="${CAERTURL}?id=${item.itemId}" data-toggle="modal"
                                           data-target="#productModal_${item.itemId}" class="icon_search"></a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="product-details mt-20">
                            <h4>${item.title!''}</h4>
                            <div class="rating-box">
                                <i class="fa fa-star"></i>
                                <i class="fa fa-star"></i>
                                <i class="fa fa-star"></i>
                                <i class="fa fa-star"></i>
                                <i class="fa fa-star"></i>
                            </div>
                            <div class="price-box">
                                <span class="old-price">￥ ${item.price!''}</span>
                                <span class="new-price">￥ ${item.newPrice!''}</span>
                            </div>
                        </div>
                    </div>
                </div>
                <%}%>
                <!-- Single Product End -->
            </div>
        </div>
    </div>
</section>
<!-- Month Top Sale Area End -->


<!--Quickview Product Start -->
<%for(item in items){%>
<div id="quickview-wrapper">
    <!-- Modal -->
    <div class="modal fade" id="productModal_${item.itemId}" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                </div>
                <div class="modal-body">
                    <div class="modal-product">
                        <div class="product-images">
                            <div class="main-image images">
                                <img alt="" src="${item.image!''}">
                            </div>
                        </div>
                        <div class="product-info">
                            <h1>${item.title!''}</h1>
                            <div class="price-box">
                                <p class="price"><span class="special-price"><span class="amount">￥ ${item.newPrice == null?item.price:item.newPrice}</span></span>
                                </p>
                            </div>
                            <div class="quick-add-to-cart">
                                <div class="cart">
                                    <button class="single_add_to_cart_button"><a
                                            href="${CAERTURL}?id=${item.itemId}"><em style="color: white">加入购物袋<em></a>
                                    </button>
                                </div>
                            </div>
                            <div class="quick-desc">
                                ${item.sellPoint!''}
                            </div>
                            <div class="social-sharing">
                                <div class="widget widget_socialsharing_widget">
                                    <h3 class="widget-title-modal">分享</h3>
                                    <ul class="social-icons">
                                        <li>
                                            <a target="_blank" title="Facebook" href="#" class="facebook social-icon"><i
                                                    class="fa fa-facebook"></i></a>
                                        </li>
                                        <li>
                                            <a target="_blank" title="Twitter" href="#" class="twitter social-icon"><i
                                                    class="fa fa-twitter"></i></a>
                                        </li>
                                        <li>
                                            <a target="_blank" title="Pinterest" href="#" class="pinterest social-icon"><i
                                                    class="fa fa-pinterest"></i></a>
                                        </li>
                                        <li>
                                            <a target="_blank" title="Google +" href="#" class="gplus social-icon"><i
                                                    class="fa fa-google-plus"></i></a>
                                        </li>
                                        <li>
                                            <a target="_blank" title="LinkedIn" href="#" class="linkedin social-icon"><i
                                                    class="fa fa-linkedin"></i></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div><!-- .product-info -->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<%}%>
<!--End of Quickview Product-->


<!-- all js here -->
<script src="static/js/vendor/jquery-1.12.4.min.js"></script>
<script src="static/js/bootstrap.min.js"></script>
<script src="static/js/owl.carousel.min.js"></script>
<script src="static/js/isotope.pkgd.min.js"></script>
<script src="static/js/jquery.nivo.slider.js"></script>
<script src="static/js/price-slider.js"></script>
<script src="static/js/jquery.simpleLens.min.js"></script>
<script src="static/js/jquery.magnific-popup.min.js"></script>
<script src="static/js/animated-heading.js"></script>
<script src="static/js/jquery.ajaxchimp.min.js"></script>
<script src="static/js/jquery.countdown.js"></script>
<script src="static/js/jquery.meanmenu.js"></script>
<script src="static/js/plugins.js"></script>
<script src="static/js/main.js"></script>
</body>
</html>

<script>
    $('#search').bind('keydown', function (event) {
        var event = arguments.callee.caller.arguments[0];
        if (event.keyCode == 13) {
            var input_value = $('#search').val();
            window.location.href = "${SEARCHURL}/select/" + input_value + "/1/20";
        }
    });
</script>



